package com.thumbs.auth.controller;

import com.thumbs.auth.service.UserService;
import com.thumbs.common.response.BaseResponse;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/auth")
public class AuthController {

    @Resource
    private UserService userService;

    @GetMapping("/login")
    public BaseResponse login(@RequestParam("username") String username) {
        return userService.login(username);
    }


}
